﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Data.Sql;
using Wicresoft.JDPostBoard.Entity;
using Wicresoft.Common;

public partial class Gift_RssIndexUnRead : System.Web.UI.Page
{
    public String userName
    {
        get
        {
            if (Request["userName"] != null)
                return Request["userName"];
            return String.Empty;
        }
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        string content = string.Empty;



        DataTable dtData = Wicresoft.Common.DataAccess.ExecuteSql("JDPB.ConnectionString",
                        string.Format(@"Select count(*) from ApplyLog where ApplierName='{0}' and(Status=N'待审核' or Status=N'即时审核' )",
                        userName.ToString())).Tables[0];
        int a = 0;
        a = Int32.Parse(dtData.Rows[0][0].ToString());
        
        if (a==0)
        {
            Response.Clear();
            content ="0";
            Response.Write(content);
            Response.End();
            
        }
        else
        {
            Response.Clear();
        content = dtData.Rows[0][0].ToString();
        Response.Write(content);
        Response.End();
        
        }
       
       
    }
}
